import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store' //我的数据仓库

//移动端一般都会采用按需加载，而不会一次全部加载（因为这样会导致首屏加载缓慢）
import { Button, Icon, Popup , Tab, Tabs, Sidebar, SidebarItem, Overlay } from 'vant'
import 'vant/lib/index.css'

//只有依赖vue的插件，引入后才需要使用Vue.use()
Vue.use(Button).use(Icon).use(Tab).use(Tabs).use(Sidebar).use(SidebarItem).use(Overlay).use(Popup)


Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
